package com.example.test2.db.entity;

import com.example.test2.db.converter.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import java.util.List;


// TODO: 2024/5/29 用户
@Entity
public class User {

    @Id(autoincrement = true)//设置自增长
    private Long id;
    @Index(unique = true)//设置唯一性
    private String phone;
    private String name;
    private String shopName;
    private String pwd;
    private String date;
    private String msg;
    private String path;
    private boolean attention;
    private boolean boy;

    @Convert(columnType = String.class, converter = StringConverter.class)
    private List<String> msgList;
    @Generated(hash = 1081652488)
    public User(Long id, String phone, String name, String shopName, String pwd,
                String date, String msg, String path, boolean attention, boolean boy,
                List<String> msgList) {
        this.id = id;
        this.phone = phone;
        this.name = name;
        this.shopName = shopName;
        this.pwd = pwd;
        this.date = date;
        this.msg = msg;
        this.path = path;
        this.attention = attention;
        this.boy = boy;
        this.msgList = msgList;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getShopName() {
        return this.shopName;
    }
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public List<String> getMsgList() {
        return this.msgList;
    }
    public void setMsgList(List<String> msgList) {
        this.msgList = msgList;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getDate() {
        return this.date;
    }
    public void setDate(String date) {
        this.date = date;
    }
    public String getMsg() {
        return this.msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String getPath() {
        return this.path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public boolean getAttention() {
        return this.attention;
    }
    public void setAttention(boolean attention) {
        this.attention = attention;
    }
    public String getPwd() {
        return this.pwd;
    }
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public boolean getBoy() {
        return this.boy;
    }
    public void setBoy(boolean boy) {
        this.boy = boy;
    }

}
